package com.leiqichao.backend.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.time.LocalDate;
import java.time.LocalDateTime;

@Data
@TableName("stat_visits")
public class StatVisit {
    @TableId(type = IdType.AUTO)
    private Long id;

    @TableField("request_path")
    private String requestPath;

    @TableField("user_agent")
    private String userAgent;

    @TableField("referrer")
    private String referrer;

    @TableField(value = "created_at", fill = FieldFill.INSERT)
    private LocalDateTime createdAt;

    @TableField("ip")
    private String ip;

    @TableField("ip_location")
    private String ipLocation;  // 新增：IP归属地字段
}